package com.anolesoft.yr.mbus.crm.service;

import com.anolesoft.yr.mbus.crm.dto.CrmBasePartPriceDTO;
import com.anolesoft.yr.mbus.crm.dto.CrmBasePartPriceQueryDTO;
import com.anolesoft.yr.util.PageData;

import java.util.List;
import java.util.Optional;

/**
 * @author zhj
 * @date 2020/8/12 10:27
 */
public interface CrmBasePartPriceService {
    int create(CrmBasePartPriceDTO crmBasePartPriceDTO);

    int modify(CrmBasePartPriceDTO crmBasePartPriceDTO);

    int remove(String id);

    List<CrmBasePartPriceDTO> selectAll();

    PageData<List<CrmBasePartPriceDTO>> selectAll(Integer limit, Integer curr);

    Optional<CrmBasePartPriceDTO> selectOneById(String id);

    List<CrmBasePartPriceDTO> selectList(CrmBasePartPriceDTO crmBasePartPriceDTO);

    PageData<List<CrmBasePartPriceDTO>> selectList(CrmBasePartPriceDTO crmBasePartPriceDTO, Integer limit, Integer curr);

    PageData<List<CrmBasePartPriceDTO>> selectPageConditionList(CrmBasePartPriceDTO crmBasePartPriceDTO, Integer limit, Integer curr);

    PageData<List<CrmBasePartPriceQueryDTO>> selectPageConditionList(CrmBasePartPriceQueryDTO crmBasePartPriceQueryDTO, Integer limit, Integer curr);
}
